package com.playground.enums;

public interface  Categorizable {
public void work();
}

class CategorizableFactory{
	
	private enum GenderCategories implements Categorizable{
		MALE,
		FEMALE
		;

		@Override
		public void work() {
			System.out.println("pretending working hard");
			
		}
		
	}
	private enum NullGenderCategory implements Categorizable{
		UNDEFINED;
		@Override
		public void work() {
			System.out.println("Not even pretending!!!");
						
		}
	}
	
	public Categorizable[] getGenderCategories(){
		return GenderCategories.values();
	}
	
	public Categorizable getMale(){
		return GenderCategories.MALE;
	}
	public Categorizable getFeMale(){
		return GenderCategories.FEMALE;
	}
	public Categorizable getUndefinedGender(){
		return NullGenderCategory.UNDEFINED;
	}
}